class CreateModifications < ActiveRecord::Migration[5.0]
  def change
    create_table :modifications do |t|
      t.belongs_to :article,    index: true, comment: '关联文章'
      t.string :title,          index: true, comment: '标题'
      t.text :content,                       comment: '内容'
      t.timestamps
    end
  end
end
